﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DrawWorkflow
{
    public class Common
    {
        public static double Distance(Point a, Point b)
        {
            double x = a.X - b.X;
            double y = a.Y - b.Y;

            double s = x * x + y * y;
            s = Math.Sqrt(s);
            return s;
        }

        public static double Distance(double X1, Double X2, Double Y1, double Y2)
        {
            return Distance(new Point(X1, Y1), new Point(X2, Y2));
        }
    }
}
